package com.duoec.doc.mock.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author xuwenzhen
 * @date 2020/2/4
 */
@Configuration
@ConfigurationProperties(prefix = "duo.doc")
public class DocMockConfig {
    /**
     * 是否需要请求头中强制标识mock
     * 如果是，则请求头中必须包含mock字段（不检查值）才会触发mock
     */
    private Boolean mockHeader;

    /**
     * duo-doc服务器地址
     *
     * @demo http://doc.duoec.net
     */
    private String docServer;

    /**
     * 当前服务的appId，用于确定是哪个项目
     *
     * @demo m.web.cp.duoec
     */
    private String appId;

    public Boolean getMockHeader() {
        return mockHeader;
    }

    public void setMockHeader(Boolean mockHeader) {
        this.mockHeader = mockHeader;
    }

    public String getDocServer() {
        return docServer;
    }

    public void setDocServer(String docServer) {
        this.docServer = docServer;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }
}
